#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<script>
function doSave()
{
	if(doCheck()){
		if(EditForm.cid.value!="")EditForm.parameter.value="update";
		EditForm.submit();
	}
}

function doCheck()
{
if(EditForm.title.value=="")
{
alert("栏目标题不能为空！");
EditForm.title.focus();
return false;
}

return true;
}
</script>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><strong>Blog好友信息编辑</strong></td>
    <td><div align="right"></div></td>
  </tr>
</table>
<form name="EditForm" method="post" action="/blogFriendLink.do">
 <input type="hidden" name="parameter" value="add">  
 <input type="hidden" name="cid"   value="$!cid">	
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8E8E8">
  <tr bgcolor="#FFFFFF"> 
    <td width="80" height="29" align="center">好友名称：</td>
    <td align="left"> <input name="title" type="text" class="input3" id="ti" value="$!title" size="40"> 
      <span class="text-red4">*(不超过20字)</span></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align="center">好友链接：</td>
    <td align="left"> <textarea name="url" cols="2" id="url" style="width:80%">$!url</textarea></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align="center">好友RSS：</td>
    <td align="left"> <textarea name="rss" cols="2" id="rss" style="width:80%">$!rss</textarea></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align="center">好友简介：</td>
    <td align="left"> <textarea name="intro" cols="2" id="intro" style="width:80%">$!intro</textarea></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td colspan="2" height="50"><input type="button" name="SubmitSave" value="保存" onClick="doSave()" />      　
      <input type="reset" name="Reset" value="重置" />
      </td>
    </tr>
</table>
</form>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end
